package com.dfbz.demo02_自定义类加载器;

/**
 * @author lscl
 * @version 1.0
 * @intro:
 */
public class Demo02_ {
    public static void main(String[] args) throws Exception{
        MyClassLoader classLoader = new MyClassLoader("d:/001");
        MyClassLoader classLoader2 = new MyClassLoader("d:/001");

        Class<?> clazz = classLoader.findClass("com.dfbz.demo01.Show");
        Class<?> clazz2 = classLoader2.findClass("com.dfbz.demo01.Show");

        System.out.println(clazz == clazz2);

        System.out.println(clazz.getClassLoader());
        System.out.println(clazz2.getClassLoader());
    }
}
